package com.zdd.ehe.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zdd.ehe.entity.RolePermission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZhuiZhu
 * @since 2023-03-13
 */
public interface IRolePermissionService extends IService<RolePermission> {
    /**
     * 分页查询角色权限
     * @param page
     * @return
     */
    Page<RolePermission> getAllUserRoleByPage (Page<RolePermission> page);

    /**
     * 多表查询
     * @param roleName
     * @return
     */
    List<RolePermission> getAllByRoleName(String roleName);


    int deleteById(int id);

    int insert(RolePermission rolePermission);

    List<Integer> getPermissionIdByRoleId(int roleId);


}
